<?php
namespace  app\manage\model;
use think\Db;
use think\Model;
class PlatformType extends Model{
    protected  $table = 'platform_type';

    /**
     * @return false|\PDOStatement|string|\think\Collection
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public function getAll() {
        $data = Db::name($this->table)
            ->where('status', 1)
            ->select();
        return $data;
    }
}